package com.jingdianjichi.subject.domain.handler.subject;

import com.jingdianjichi.subject.common.enums.SubjectInfoTypeEnum;
import com.jingdianjichi.subject.domain.entity.SubjectInfoBO;
import com.jingdianjichi.subject.domain.entity.SubjectOptionBO;

/**
 * Description: 题目类型接口
 * Copyright: Copyright (c) 2024
 * Create Time: 2024-07-15 15:05
 *
 * @author wanglianyun
 */
public interface SubjectTypeHandler {

    /**
     * 枚举身份的识别
     * @return 题目类型
     */
    SubjectInfoTypeEnum getHandlerType();

    /**
     * 实际的题目的插入
     * @param subjectInfoBO subjectInfoBO
     */
    void add(SubjectInfoBO subjectInfoBO);

    /**
     * 获取题目信息
     * @param subjectId  题目id
     * @return 结果
     */
    SubjectOptionBO query(int subjectId);
}
